define(['app'], function(app) {
	'use strict';

	//实例化方法
	var factory = function(Http) {

		//返回信息
		return {
			//发送手机验证码
			get_CellphoneCode: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.getCellphoneCodeNew';

				//post请求
				Http.post(param, callback, error, done);
			},

			check_CellphoneCode: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.chkCellphoneCode';

				//post请求
				Http.post(param, callback, error, done);
			},

			signup: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.signup';

				//post请求
				Http.post(param, callback, error, done);
			},

			checkAccount: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.checkAccount';

				//post请求
				Http.post(param, callback, error, done);
			},
			
						// 账户密码登录操作
			get_login: function(param, callback, error, done) {

				param = param || {}
				param.method = 'member.login';

				//post请求
				Http.post(param, callback, error, done);
			},
		};
	}

	factory.$inject = ['Http'];
	return app.registerService("T_register", factory);
});